#ifndef CLIENTWIDGET_H
#define CLIENTWIDGET_H

#include <QWidget>
#include <QThread>
#include "client.h"

QT_BEGIN_NAMESPACE
namespace Ui { class ClientWidget; }
QT_END_NAMESPACE

class ClientWidget : public QWidget
{
    Q_OBJECT

public:
    ClientWidget(QWidget *parent = nullptr);
    ~ClientWidget();

private:
    Ui::ClientWidget *ui;
    QThread* m_clientThread;
    Client* m_client;
    int m_clientFd;
    void showWebpage(QString html);

signals:
    void startClient();
    void sendFilename(QString filename);
private slots:
    void on_submitBtn_clicked();
};
#endif // CLIENTWIDGET_H
